/**
 * Created by user on 2017/9/20.
 */
import React , { Component } from 'react';
import { Route, Switch } from 'react-router-dom';
import RouteMap from './RouteMap';

class RouteManager extends Component{
    render(){
        return(
            <Switch>
                {
                    RouteMap.map((route,i)=>{
                        const { routes } = route;
                        if( routes && routes.length > 0){

                        }else {

                        }
                        return(
                            <Route exact key={i} {...route} />
                        )
                    })
                }
            </Switch>
        )
    }
}
export default RouteManager;